-- GENERATED SPELL FOR [Elder Rage Scar] --


function spell0_5297(pUnit, Event) --@Battle Roar,Self--
pUnit:FullCastSpellOnTarget(6507,pUnit)
pUnit:RegisterEvent('Sorts_5297', 0, 1)
end

function Sorts_5297(pUnit, Event)
local choix_sorts_5297 = math.random(0, 0)
if choix_sorts_5297 == 0 then
pUnit:RegisterEvent('spell0_5297', 1, 1)
end
end

function mob5297_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5297', math.random(1500, 3000), 1)
end

function mob5297_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5297_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5297_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5297, 1, 'mob5297_Action')
RegisterUnitEvent(5297, 2, 'mob5297_Leave')
RegisterUnitEvent(5297, 3, 'mob5297_Kill')
RegisterUnitEvent(5297, 4, 'mob5297_Die')
